package com.roin.learn.freemarker.entity;

import com.roin.learn.freemarker.base.BaseEntity;

import javax.persistence.Column;
import java.util.Date;

public class Book extends BaseEntity {
    private Integer id;

    private String name;

    private String author;

    private Float price;

    private Integer pasesize;

    private Date releaseDate;

    private Double discount;

    private Date createDate;

    private Date updateDate;

    private String createEName;

    private String updateEName;

    private String description;

    public Book(Integer id, String name, String author, Float price, Integer pasesize, Date releaseDate, Double discount, Date createDate, Date updateDate, String createEName, String updateEName, String description) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.price = price;
        this.pasesize = pasesize;
        this.releaseDate = releaseDate;
        this.discount = discount;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.createEName = createEName;
        this.updateEName = updateEName;
        this.description = description;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getAuthor() {
        return author;
    }

    public Float getPrice() {
        return price;
    }

    public Integer getPasesize() {
        return pasesize;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public Double getDiscount() {
        return discount;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public String getCreateEName() {
        return createEName;
    }

    public String getUpdateEName() {
        return updateEName;
    }

    public String getDescription() {
        return description;
    }
}